//
//  NQAddRecordVc.h
//  ZLFastDoctor
//
//  Created by 李岚清 on 16/5/24.
//  Copyright © 2016年 LS. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "NQRecord.h"

typedef enum {
    NQAddRecordVcTypeDelete,
    NQAddRecordVcTypePost
}NQAddRecordVcType;

@protocol NQAddRecordVcDelegate <NSObject>

/**
 *  点击了删除/提交
 *
 *  @param type   点击的按钮类型
 *  @param record 病例模型
 */
- (void)didOperation:(NQAddRecordVcType)type oldRecord:(NQRecord *)oldRecord newRecord:(NQRecord *)newRecord;

@end

@interface NQAddRecordVc : UIViewController

@property (nonatomic, copy) void(^addRecrdModel)(NQRecord *recordModel);

/**
 *  记录点击cell第一次进入"添加病例"
 */
@property (nonatomic, assign) BOOL isFirst;

/**
 *  传入选中的病例模型
 */
@property (nonatomic, strong) NQRecord *recordSelectedModel;
/**
 *  设置代理监听删除/提交的点击
 */
@property (nonatomic, weak) id <NQAddRecordVcDelegate> delegate;



@end
